home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / cxl52_1.zip / CXLQREF.DOC < prev    next >
Text File  |  1990-02-17  |  29KB  |  1,142 lines

  1.  
  2.                              CXL Quick Reference
  3.                              -------------------
  4.  
  5.     CXLDEF.H - Miscellaneous Functions
  6.     ----------------------------------
  7.  
  8.     void beep(void);
  9.     Sounds a beep in the speaker.
  10.  
  11.     char *biosver(void);
  12.     Returns the ROM BIOS version date.
  13.  
  14.     int clockcal(void);
  15.     Determines if a clock-calendar board is installed.
  16.  
  17.     char *cxlver(void);
  18.     Returns the CXL version number of the current CXL library in use.
  19.  
  20.     void delay_(unsigned duration);
  21.     Delays program execution for a specified duration.
  22.  
  23.     unsigned expmem(void);
  24.     Determines the amount, if any, of expanded memory on the system.  
  25.  
  26.     unsigned extmem(void);
  27.     Determines the amount of extended memory on an AT-class machine.
  28.  
  29.     int fcrypt(char *file,char *key);
  30.     Encrypts or decrypts a text or binary file.
  31.  
  32.     int gameport(void);
  33.     Determines if a game port is installed.
  34.  
  35.     int machid(void);
  36.     Returns the value of the machine ROM ID byte.
  37.  
  38.     int mathchip(void);
  39.     Determines if a math coprocessor is installed.
  40.  
  41.     int numflop(void);
  42.     Returns the number of floppy disk drives installed.
  43.  
  44.     int numpar(void);
  45.     Returns the number of parallel ports.
  46.  
  47.     int numser(void);
  48.     Returns the number of serial ports installed.
  49.  
  50.     char *randfile(void);
  51.     Creates a random file name.
  52.  
  53.     void sound_(unsigned pitch,unsigned duration);
  54.     Sounds a tone of specified pitch and duration.
  55.  
  56.     char *sysdate(int dtype);
  57.     Returns a string containing the current system date.
  58.  
  59.  
  60.                                       1    
  61.  
  62.     char *systime(int ttype);
  63.     Returns a string containing the current system time.
  64.  
  65.     int tabstop(int col,int tabwidth);
  66.     Calculates a tab stop from given column and tab width.
  67.  
  68.     unsigned long timer(void);
  69.     Returns the value of the BIOS timer.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.                                       2    
  121.  
  122.     CXLEMS.H - Expanded Memory Functions
  123.     ------------------------------------
  124.  
  125.     int emsalloc(int numpages);
  126.     Allocates pages of EMS memory.
  127.  
  128.     int emsdealloc(int handle);
  129.     Deallocates previously allocated pages of EMS memory.
  130.  
  131.     int emsexist(void);
  132.     Determines if the EMS device driver is loaded.
  133.  
  134.     unsigned emsframe(void);
  135.     Returns the EMS page frame base segment address.
  136.  
  137.     unsigned emsfree(void);
  138.     Returns the number of free EMS pages (16K blocks).
  139.  
  140.     int emsmap(int handle,int lpage,int ppage);
  141.     Maps a logical page of EMS memory onto a physical page address.
  142.  
  143.     int emsread(char *dest,unsigned emsofs,unsigned numbytes);
  144.     Reads bytes from one or more pages of allocated EMS memory.  
  145.  
  146.     unsigned emstotal(void);
  147.     Returns the total number of EMS memory pages (16K blocks) on the system.
  148.  
  149.     char *emsver(void);
  150.     Returns the version of the EMS driver in use.
  151.  
  152.     int emswrite(char *src,unsigned emsofs,unsigned numbytes);
  153.     Writes bytes to one or more pages of EMS memory.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.                                       3    
  181.  
  182.     CXLKEY.H - Keyboard Functions
  183.     -----------------------------
  184.  
  185.     void capsoff(void);
  186.     Toggles the CapsLock key off.
  187.  
  188.     void capson(void);
  189.     Toggles the CapsLock key on.
  190.  
  191.     struct _onkey_t *chgonkey(struct _onkey_t *list);
  192.     Changes the defined onkey list pointer.
  193.  
  194.     void clearkeys(void);
  195.     Clears the keyboard buffer.
  196.  
  197.     void freonkey(void);
  198.     Frees all active onkey definitions from memory.
  199.  
  200.     int getchf(char *valid,int defchar);
  201.     Gets a character from the keyboard from a list of valid characters.
  202.  
  203.     int getns(char *str,int maxchars);
  204.     Inputs a string of a specified maximum length from the keyboard.
  205.  
  206.     unsigned getxch(void);
  207.     Gets a key (ASCII code/scan code) from the keyboard.  
  208.  
  209.     int inputsf(char *str,char *fmt);
  210.     Inputs a formatted string from the keyboard.  
  211.  
  212.     void kbclear(void);
  213.     Clears CXL's internal keyboard buffer.
  214.  
  215.     int kbmhit(void);
  216.     Determines if a key has been pressed and is waiting to be got.
  217.  
  218.     int kbput(unsigned xch);
  219.     Places a keystroke into CXL's internal keyboard buffer.  
  220.  
  221.     int kbputs(char *str);
  222.     Places a string of characters into CXL's internal keyboard buffer.
  223.  
  224.     unsigned kbstat(void);
  225.     Returns the status of the keyboard control keys.
  226.  
  227.     void numoff(void);
  228.     Toggles the NumLock key off.
  229.  
  230.     void numon(void);
  231.     Toggles the NumLock key on.
  232.  
  233.     int scancode(int ch);
  234.     Returns the common scan code of the specified character.
  235.  
  236.     void setkbloop(void (*func)(void));
  237.     Specifies a function to be called during keyboard wait periods.
  238.  
  239.  
  240.                                       4    
  241.  
  242.     int setonkey(unsigned keycode,void (*func) (void),unsigned pass);
  243.     Attaches/detaches a keypress to a function call.
  244.   
  245.     int waitkey(void);
  246.     Clears the keyoard buffer and halts the program until a key is pressed.
  247.  
  248.     int waitkeyt(int duration);
  249.     Clears the keyboard buffer and halts the program until a key press, or
  250.     the specified time limit expires.
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.                                       5    
  301.  
  302.     CXLMOU.H - Mouse Functions
  303.     --------------------------
  304.  
  305.     void msbclear(void);
  306.     Clears the mouse driver's button counters.
  307.  
  308.     void msbpress(int button,int *bstat,int *bcount,int *row,int *col);
  309.     Returns information about the specific button presses of mouse.
  310.  
  311.     void msbreles(int button,int *bstat,int *bcount,int *row,int *col);
  312.     Returns informmation about specific button releases of mouse.
  313.  
  314.     void mscondoff(int srow,int scol,int erow,int ecol);
  315.     Conditionally hides the mouse cursor.
  316.  
  317.     void mscursor(unsigned curtype,unsigned smask,unsigned cmask);
  318.     Sets the mouse text cursor type.  
  319.  
  320.     void msgotoxy(int row,int col);
  321.     Sets the mouse cursor coordinates.
  322.  
  323.     void mshbounds(int leftcol,int rightcol);
  324.     Sets the mouse's upper and lower horizontal bounds.
  325.  
  326.     void mshidecur(void);
  327.     Hides the mouse cursor.
  328.  
  329.     int msinit(void);
  330.     Determines if a mouse is present.  If so, initializes it.
  331.  
  332.     void msmotion(int *rowcount,int *colcount);
  333.     Gets information about the movement of the mouse.
  334.  
  335.     void msshowcur(void);
  336.     Reveals the hidden mouse cursor.
  337.  
  338.     void msspeed(int xratio,int yratio);
  339.     Adjusts the mouse's speed by changing its sensitivity.
  340.  
  341.     void msstatus(int *bstat,int *row,int *col);
  342.     Returns the status of the mouse.
  343.  
  344.     void mssupport(int type);
  345.     Selects the type of mouse support to be used by CXL functions.
  346.  
  347.     void msvbounds(int toprow,int botrow);
  348.     Sets the mouse's left and right vertical bounds.
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.                                       6    
  361.  
  362.     CXLPRN.H - Printer Functions
  363.     -----------------------------
  364.  
  365.     void lcrlf(void);
  366.     Prints a carriage return and line feed on the printer (PRN).
  367.  
  368.     void lprintc(int ch);
  369.     Prints a character on the printer (PRN).
  370.  
  371.     void lprintf(const char *format,...);
  372.     Sends formatted output to the printer (PRN).  
  373.  
  374.     void lprintns(char *str,int width);
  375.     Prints a string to a fixed width on the printer (PRN).
  376.  
  377.     void lprints(char *str);
  378.     Prints a string on the printer (PRN).
  379.  
  380.     void lprintsb(char *str,int reps);
  381.     Prints a bold-faced string on the printer (PRN).
  382.  
  383.     void lprintsu(char *str);
  384.     Prints an underlined string on the printer (PRN).
  385.  
  386.     void scrndump(void);
  387.     Dumps the current screen to the printer (PRN).
  388.  
  389.     void windump(int srow,int scol,int erow,int ecol);
  390.     Dumps a screen window to the printer (PRN).
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.                                       7    
  421.  
  422.     CXLSTR.H - String Functions
  423.     ---------------------------
  424.  
  425.     int cvaltype(int ch,int ctype);
  426.     Checks given character against a given CXL character type code.
  427.  
  428.     double cvtcf(char *field,int wholesize,int fracsize);
  429.     Converts a CXL field string to a floating point number.
  430.  
  431.     int cvtci(char *field);
  432.     Converts a CXL field string to an integer.
  433.  
  434.     void cvtfc(char *field,double value,int wholesize,int fracsize);
  435.     Converts a floating point number to a CXL field string.
  436.  
  437.     void cvtic(char *field,int value,int size);
  438.     Converts an integer to a CXL field string.
  439.  
  440.     int strblank(char *str);
  441.     Determines if a given string is blank (whitespace).
  442.  
  443.     char *strbmatch(char *str,char *strarr[]);
  444.     Returns the best match of a string in an array of strings.
  445.  
  446.     char *strbtrim(char *str);
  447.     Trims both leading and trailing spaces off of a string.
  448.  
  449.     int strchg(char *str,int oldch,int newch);
  450.     Finds matching characters in a string & replaces them with another.
  451.  
  452.     unsigned long strchksum(char *str);
  453.     Returns the checksum of a string.  
  454.  
  455.     char *strcode(char *str,char *key);
  456.     Encrypts/decrypts a string.  
  457.  
  458.     char *strdel(char *substr,char *str);
  459.     Deletes a substring from within a string.
  460.  
  461.     char *strdela(char *substr,char *str);
  462.     Deletes all occurrences of a substring from within a string.
  463.  
  464.     int strichg(char *str,int oldch,int newch);
  465.     Finds matching characters in a string & replaces them with another.
  466.     Case insensitive.
  467.  
  468.     unsigned long strichksum(char *str);
  469.     Returns the checksum of a string.  Lowercase letters count as uppercase.
  470.  
  471.     char *stridel(char *substr,char *str);
  472.     Deletes a substring from within a string.  Case insensitive.
  473.  
  474.     char *stridela(char *substr,char *str);
  475.     Deletes all occurrences of a substring from a string.  Case insensitive.
  476.  
  477.     char *striinc(char *str1,char *str2);
  478.  
  479.  
  480.                                       8    
  481.     Determines if/where one string is included in another. Case insensitive.
  482.  
  483.     char *strinc(char *str1,char *str2);
  484.     Determines if and where one string is included within another.
  485.  
  486.     char *strins(char *instr,char *str,int st_pos);
  487.     Inserts one string into another.
  488.  
  489.     int striocc(char *str,int ch);
  490.     Returns number of occurrences of character in string.  Case insensitive.
  491.  
  492.     char *strischg(char *str,char *find,char *replace);
  493.     Changes all occurrences of one string to another.  Case insensitive.
  494.  
  495.     int strisocc(char *str1,char *str2);
  496.     Counts occurrences of one string within another.  Case insensitive.
  497.  
  498.     char *strisrep(char *str,char *search,char *replace);
  499.     Searches for, and replaces one string within another. Case insensitive.
  500.  
  501.     char *strleft(char *str,int num_chars);
  502.     Takes a portion of a string from its left, creating a new string.
  503.  
  504.     char *strljust(char *str);
  505.     Left justifies a text string.
  506.  
  507.     char *strltrim(char *str);
  508.     Trims the leading spaces off of a string.
  509.  
  510.     int strmatch(char *str1,char *str2);
  511.     Compares 2 strings and returns a match score.
  512.  
  513.     char *strmid(char *str,int st_pos,int num_chars);
  514.     Takes a portion from the middle of a string, creating a new string.
  515.  
  516.     int strocc(char *str,int ch);
  517.     Returns the number of occurrences of a given character in a string.
  518.  
  519.     char *strright(char *str,int num_chars);
  520.     Takes a portion from the right side of a string, creating a new string.
  521.  
  522.     char *strrjust(char *str);
  523.     Right justifies a text string.
  524.  
  525.     char *strrol(char *str,int count);
  526.     Rotates a string specified number of characters left.  
  527.  
  528.     char *strror(char *str,int count);
  529.     Rotates a string specified number of characters right. 
  530.  
  531.     char *strschg(char *str,char *find,char *replace);
  532.     Changes all occurrences of one string to another.
  533.  
  534.     char *strsetsz(char *str,int newsize);
  535.     Adjusts length of a string, either by truncation or padding with spaces.
  536.  
  537.     char *strshl(char *str,int count);
  538.  
  539.  
  540.                                       9    
  541.     Shifts a string a specified number of characters left.
  542.  
  543.     char *strshr(char *str,int count);
  544.     Shifts a string a specified number of characters right.  
  545.  
  546.     int strsocc(char *str1,char *str2);
  547.     Counts the occurrences of one string within another.
  548.  
  549.     char *strsrep(char *str,char *search,char *replace);
  550.     Searches for, and replaces one string within another.
  551.  
  552.     char *strtrim(char *str);
  553.     Trims trailing spaces off of a string.
  554.  
  555.     char *struplow(char *str);
  556.     Converts a string to mixed upper & lowercase characters.
  557.  
  558.     int touplow(char *str,char *pos,int ch);
  559.     Converts a character to upper/lowercase depending on previous character.
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.                                       10   
  601.  
  602.     CXLVID.H - Video Functions
  603.     --------------------------
  604.  
  605.     int attrib(int fore,int back,int bright,int blink);
  606.     Creates a text attribute.
  607.  
  608.     void box_(int srow,int scol,int erow,int ecol,int btype,int attr);
  609.     "Draws" a text box on the screen.
  610.  
  611.     void cclrscrn(int attr);
  612.     Clears the screen using given text attribute and homes the cursor.
  613.  
  614.     int cgardbyte(char far *src);
  615.     Reads a byte from CGA video memory without snow.
  616.  
  617.     int cgardword(int far *src);
  618.     Reads a word from CGA video memory without snow.
  619.  
  620.     void cgareadn(int far *src,int *dest,unsigned n);
  621.     Reads n words from CGA video memory without snow.
  622.  
  623.     void cgawrbyte(char far *dest,int chr);
  624.     Writes a byte to CGA video memory without snow.
  625.  
  626.     void cgawriten(int *src,int far *dest,unsigned n);
  627.     Writes n words to CGA video memory without snow.
  628.  
  629.     void cgawrstr(char far *dest,char *string,int attr);
  630.     Writes a string to CGA video memory without snow.
  631.  
  632.     void cgawrword(int far *dest,int chratr);
  633.     Writes a word to CGA video memory without snow.
  634.  
  635.     void clreol_(void);
  636.     Clears to the end of line using the text attribute under the cursor.
  637.  
  638.     void clrscrn(void);
  639.     Clears the screen and homes the cursor.
  640.  
  641.     void clrwin(int srow,int scol,int erow,int ecol);
  642.     Clears a window of the screen.
  643.  
  644.     int disktoscrn(char *fname);
  645.     Copies a previously saved screen disk file to the screen.
  646.  
  647.     int disktowin(char *fname);
  648.     Copies a previously saved window disk file to the screen.
  649.  
  650.     void fill_(int srow,int scol,int erow,int ecol,int ch,int attr);
  651.     Fills in a region of the screen with a specified character/attribute.
  652.  
  653.     void getcursz(int *sline,int *eline);
  654.     Returns the start and stop scan lines of cursor.
  655.  
  656.     void gotoxy_(int row,int col);
  657.     Sets cursor coordinates on the screen.
  658.  
  659.  
  660.                                       11   
  661.  
  662.     void hidecur(void);
  663.     Hides the cursor.  
  664.  
  665.     void lgcursor(void);
  666.     Makes the cursor large.
  667.  
  668.     int mapattr(int attr);
  669.     Translates a color text attribute into its monochrome equivalent.
  670.  
  671.     void mode(int mode_code);
  672.     Sets the video mode.
  673.  
  674.     void printc(int row,int col,int attr,int ch);
  675.     Displays a character to the screen at a specified location.
  676.  
  677.     void prints(int row,int col,int attr,char *str);
  678.     Displays a string on the screen at a specified location.
  679.  
  680.     void putchat(int ch,int attr);
  681.     Puts a character/attribute on the screen at current cursor position.
  682.  
  683.     unsigned readchat(void);
  684.     Reads the character and attribute under the cursor.
  685.  
  686.     void readcur(int *row,int *col);
  687.     Reads the current cursor location.
  688.  
  689.     void revattr(int count);
  690.     Reverses the attribute of the character under the cursor.
  691.  
  692.     int revsattr(int attr);
  693.     Returns the inverse of the given text attribute.
  694.  
  695.     int scrntodisk(char *fname);
  696.     Copies the current screen to a disk file.
  697.  
  698.     void setattr(int attr,int count);
  699.     Sets the attribute of the character under the cursor.
  700.  
  701.     void setcursz(int sline,int eline);
  702.     Sets the cursor size.  This function is video adapter dependent.
  703.  
  704.     int setlines(int numlines);
  705.     Sets the number of lines on the display.  
  706.  
  707.     int setvparam(int setting);
  708.     Sets video display parameters.
  709.  
  710.     void showcur(void);
  711.     Reveals the hidden cursor, restoring it to its previous shape.
  712.  
  713.     void smcursor(void);
  714.     Makes the cursor small.
  715.  
  716.     void spc(int num);
  717.     Displays a specified number of spaces to the screen.
  718.  
  719.  
  720.                                       12   
  721.  
  722.     void srestore(int *sbuf);
  723.     Restores a previously saved screen.
  724.  
  725.     int *ssave(void);
  726.     Saves the current screen to a buffer.  
  727.  
  728.     int videoinit(void);
  729.     Initializes CXL's video system.
  730.  
  731.     int vidmode(void);
  732.     Returns the current video display mode.
  733.  
  734.     int vidtype(void);
  735.     Determines the display adapter type.
  736.  
  737.     int wintodisk(int srow,int scol,int erow,int ecol,char *fname);
  738.     Copies a window of the screen to a disk file.
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.                                       13   
  781.  
  782.     CXLWIN.H - Windowing Functions
  783.     ------------------------------
  784.  
  785.     int wactiv(WINDOW whandle);
  786.     Activates a previously opened window, bringing it in front.
  787.  
  788.     int wborder(int btype);
  789.     Changes the active window's border box type.  
  790.  
  791.     int wbox(int wsrow,int wscol,int werow,int wecol,int btype,int attr);
  792.     "Draws" a text box in the active window.
  793.  
  794.     int wbprintc(int bord,int offs,int attr,int ch);
  795.     Displays a character on a window's border.
  796.  
  797.     int wcclear(int attr);
  798.     Clears the active window using specified text attribute, homes cursor.
  799.  
  800.     int wcenters(int wrow,int attr,char *str);
  801.     Displays a string centered in active window.  
  802.  
  803.     int wchgattr(int battr,int wattr);
  804.     Changes the text attribute of the active window.  
  805.  
  806.     int wchkbox(int wsrow,int wscol,int werow,int wecol);
  807.     Checks validity of given window box coordinates.
  808.  
  809.     int wchkcol(int wcol);
  810.     Checks validity of given window column coordinate.
  811.  
  812.     int wchkcoord(int wrow,int wcol);
  813.     Checks validity of given window row,column coordinates.
  814.  
  815.     int wchkrow(int wrow);
  816.     Checks validity of given window row coordinate.
  817.  
  818.     int wclear(void);
  819.     Clears the active window, then homes the cursor.
  820.  
  821.     int wclose(void);
  822.     Closes the active window.  
  823.  
  824.     int wcloseall(void);
  825.     Closes all open windows.
  826.  
  827.     int wclreol(void);
  828.     Clears from the cursor to the end of the active window's line.  
  829.  
  830.     int wclreos(void);
  831.     Clears from the cursor to the end of the active window.  
  832.  
  833.     int wcopy(int nsrow,int nscol);
  834.     Creates a new window duplicating the active window.  
  835.  
  836.     int wdelline(int wrow,int direc);
  837.     Deletes a line from the active window.  
  838.  
  839.  
  840.                                       14   
  841.  
  842.     int wdrag(int direction);
  843.     Smoothly drag active window one row/column in given direction.
  844.  
  845.     int wdump(void);
  846.     Dumps the active window to the default printer (PRN).
  847.  
  848.     int wdupc(int ch,int count);
  849.     Displays a character a specified number of times in active window.
  850.  
  851.     int wdups(char *str,int count);
  852.     Displays a string a specified number of times in the active window.
  853.  
  854.     char *werrmsg(void);
  855.     Returns a literal representation of the error message from the last
  856.     windowing function.
  857.  
  858.     int wfill(int wsrow,int wscol,int werow,int wecol,int ch,int attr);
  859.     Fills in a region of active window with a specified character/attribute.
  860.  
  861.     void wfillch(int ch);
  862.     Specifies character the windowing system will use for filling windows.
  863.  
  864.     struct _wrec_t *wfindrec(WINDOW whandle);
  865.     Finds the address of a window record using the specified window handle.
  866.  
  867.     int wgetc(void);
  868.     Gets a character from the keyboard from within active window.  
  869.  
  870.     int wgetchf(char *valid,int defchar);
  871.     Gets character from valid list from keyboard from within active window.
  872.  
  873.     int wgetns(char *str,int maxlen);
  874.     Gets a limited-length string from keyboard from within active window.
  875.  
  876.     int wgets(char *str);
  877.     Gets a string from the keyboard from within the active window.
  878.  
  879.     int wgetyn(int cdefault);
  880.     Gets a [Y]es or [N]o response from the keyboard.
  881.  
  882.     int wgotoxy(int wrow,int wcol);
  883.     Sets cursor coordinates within the active window.
  884.  
  885.     WINDOW whandle(void);
  886.     Returns the window handle of the active window.
  887.  
  888.     int whelpcat(int cat);
  889.     Sets the current help category.  
  890.  
  891.     int whelpclr(void);
  892.     Clears the help category stack.
  893.  
  894.     int whelpdef(char *file,unsigned key,int winattr,int textattr,
  895.                  int selattr,int barattr,void (*open)(void));
  896.     Defines the help file, key, and window colors.  
  897.  
  898.  
  899.  
  900.                                       15   
  901.     int whelpop(void);
  902.     Pops the help category off of the top of the stack and makes it current.
  903.  
  904.     int whelpopc(void);
  905.     Pops the help category off of the top of the stack and into the void.  
  906.  
  907.     int whelppcat(int cat);
  908.     Pushes the current help category onto the stack, then sets it to value.
  909.  
  910.     int whelpush(void);
  911.     Pushes the current help category onto the help category stack.
  912.  
  913.     int whelpushc(int cat);
  914.     Pushes the specified help category onto the help category stack.  The
  915.     current help category is not affected.  The stack can hold up to 20 help
  916.     categories.
  917.  
  918.     int whelpundef(void);
  919.     Disengages the help sytem.
  920.  
  921.     int whelpwin(int srow,int scol,int erow,int ecol,int btype,int title);
  922.     Sets specific features to be used by help window for when it is opened.
  923.  
  924.     int whide(void);
  925.     Hides the active window.  The next window becomes active.
  926.  
  927.     int whline(int wsrow,int wscol,int count,int btype,int attr);
  928.     "Draws" a horizontal text line in active window.
  929.  
  930.     WINDOW windowat(int row,int col);
  931.     Returns the handle of the window at given screen row,column coordinates.
  932.  
  933.     int winpbeg(int fieldattr,int textattr);
  934.     Marks the beginning of a data input form.
  935.  
  936.     int winpdef(int wrow,int wcol,char *str,char *format,int fconv,int mode,
  937.                 int (*validate) (char *),int help);
  938.     Defines a window input field.
  939.  
  940.     int winpfba(void (*before)(void),void (*after)(void));
  941.     Assigns "before" and "after" function pointers to an input field.
  942.  
  943.     struct _field_t *winpfcurr(void);
  944.     Returns the address of the current input field's record.  
  945.  
  946.     struct _field_t *winpffind(int wrow,int wcol);
  947.     Searches for a defined input field and returns address of its record.
  948.  
  949.     int winpkey(unsigned (*getkey)(int *),unsigned *termkey);
  950.     Defines alternate keyboard support for multi-field input forms.
  951.  
  952.     int winpread(void);
  953.     Marks the end of the defined input form and initiates processing of it.
  954.  
  955.     int winputsf(char *str,char *fmt);
  956.     Inputs a formatted string from the keyboard from within active window.  
  957.  
  958.  
  959.  
  960.                                       16   
  961.     int winsline(int wrow,int direc);
  962.     Inserts a blank line in the active window.  
  963.  
  964.     int wisactiv(WINDOW whandle);
  965.     Determines if the specified window is active.
  966.  
  967.     int wmenubeg(int srow,int scol,int erow,int ecol,int btype,int battr,
  968.                  int wattr,void (*open)(void));
  969.     Starts a menu/sub-menu definition.
  970.  
  971.     int wmenubegc(void);
  972.     Starts a menu/sub-menu definition for menus to assume the active window.
  973.  
  974.     int wmenuend(int taginit,int menutype,int barwidth,int textpos,
  975.                  int textattr,int scharattr,int noselattr,int barattr);
  976.     Ends a menu/sub-menu definition.
  977.  
  978.     int wmenuget(void);
  979.     Processes the defined menu structure.  
  980.  
  981.     int wmenuiba(void (*before)(void),void (*after)(void));
  982.     Assigns "before" and "after" function pointers to a menu item.
  983.  
  984.     struct _item_t *wmenuicurr(void);
  985.     Returns the address of the current menu item's record. 
  986.  
  987.     int wmenuidsab(int tagid);
  988.     Disables a menu item by making it nonselectable.
  989.  
  990.     int wmenuienab(int tagid);
  991.     Enables a disabled menu item for selection.
  992.  
  993.     struct _item_t *wmenuifind(int tagid);
  994.     Searches the menu structure for the address of a menu item's record.
  995.  
  996.     int wmenuinext(int tagid);
  997.     Sets which menu item to position bar at upon return from function call.
  998.  
  999.     int wmenuitem(int wrow,int wcol,char *str,int schar,int tagid,int fmask,
  1000.                   void (*select)(void),unsigned hotkey,int help);
  1001.     Defines a menu item.  
  1002.  
  1003.     int wmenuitxt(int wrow,int wcol,int attr,char *str);
  1004.     Adds a text description to a menu item.  
  1005.  
  1006.     struct _menu_t *wmenumcurr(void);
  1007.     Returns the address of the currently active menu's record.
  1008.  
  1009.     int wmessage(char *str,int border,int leftofs,int attr);
  1010.     Displays text on the top or bottom border of the active window.
  1011.  
  1012.     int wmove(int nsrow,int nscol);
  1013.     Moves the active window to a new location on the screen.
  1014.  
  1015.     WINDOW wopen(int srow,int scol,int erow,int ecol,int btype,int battr,
  1016.                  int wattr);
  1017.     Opens a screen window and makes it active. 
  1018.  
  1019.  
  1020.                                       17   
  1021.  
  1022.     int wperror(char *message);
  1023.     Opens an error window and displays an error message.
  1024.  
  1025.     int wpgotoxy(int wrow,int wcol);
  1026.     Sets cursor coordinates within the active window, wrapping if needed.
  1027.  
  1028.     char *wpickfile(int srow,int scol,int erow,int ecol,int btype,
  1029.                     int bordattr,int winattr,int barattr,int title,
  1030.                     char *filespec,void (*open)(void));
  1031.     Opens up a file picking window and allows user to select a file.
  1032.  
  1033.     int wpickstr(int srow,int scol,int erow,int ecol,int btype,int bordattr,
  1034.                  int winattr,int barattr,char *strarr[],int initelem,
  1035.                  void (*open)(void));
  1036.     Opens up a string picking window and allows user to select a string.
  1037.  
  1038.     int wprintc(int row,int col,int attr,int ch);
  1039.     Displays a character in the active window.  
  1040.  
  1041.     int wprintf(const char *format,...);
  1042.     Outputs a formatted string to the active window.
  1043.  
  1044.     int wprints(int wrow,int wcol,int attr,char *str);
  1045.     Displays a string in the active window.  
  1046.  
  1047.     int wprintsf(int wrow,int wcol,int attr,char *format,char *str);
  1048.     Displays a string to active window using a CXL format string.  
  1049.  
  1050.     int wputc(int ch);
  1051.     Displays a character in the active window at current cursor position.
  1052.  
  1053.     int wputns(char *str,int width);
  1054.     Displays a string in the active window at the current cursor position.
  1055.     Number of characters output will be determined by input width.
  1056.  
  1057.     int wputs(char *str);
  1058.     Displays a string in the active window at the current cursor position.
  1059.  
  1060.     int wputsw(char *str);
  1061.     Displays a string in active window at the current cursor position.
  1062.     Words will be wrapped around to the next line if necessary.
  1063.  
  1064.     int wreadcur(int *wrow,int *wcol);
  1065.     Reads the current cursor coordinates of the active window.
  1066.  
  1067.     void wrestore(int *wbuf);
  1068.     Restores a previously saved region of the screen screen.
  1069.  
  1070.     int wrjusts(int wrow,int wjcol,int attr,char *str);
  1071.     Displays a string right justified to specified column in active window.   
  1072.  
  1073.     int *wsave(int srow,int scol,int erow,int ecol);
  1074.     Saves a region of the screen.
  1075.  
  1076.     int wscanf(const char *format,...);
  1077.     Inputs a formatted string from keyboard from within active window.
  1078.  
  1079.  
  1080.                                       18   
  1081.  
  1082.     int wscroll(int count,int direc);
  1083.     Scrolls text lines within the active window, up or down.
  1084.  
  1085.     int wscrollbox(int wsrow,int wscol,int werow,int wecol,int count,
  1086.                    int direc);
  1087.     Scrolls a region of the active window up or down.
  1088.  
  1089.     int wselstr(int wrow,int wcol,int attr,char *strarr[],int initelem);
  1090.     Allows user to select one string from an array via an in-place "menu".  
  1091.  
  1092.     void wsetesc(int option);
  1093.     Sets the Escape checking status for window keyboard input functions.
  1094.  
  1095.     int wshadoff(void);
  1096.     Removes the shadow from the active window, if one exists.
  1097.  
  1098.     int wshadow(int attr);
  1099.     Gives the active window a shadow.  
  1100.  
  1101.     int wsize(int nerow,int necol);
  1102.     Adjusts the size of the active window.
  1103.  
  1104.     int wslide(int nsrow,int nscol);
  1105.     Smoothly slides active window to new screen position.
  1106.  
  1107.     void wtabwidth(int tabwidth);
  1108.     Modifies the tab width to be used when displaying tabs in windows.
  1109.  
  1110.     int wtextattr(int attr);
  1111.     Sets the current text attribute for the active window.  
  1112.  
  1113.     int wtitle(char *str,int tpos,int tattr);
  1114.     Gives active window a title.
  1115.  
  1116.     int wunhide(WINDOW whandle);
  1117.     Unhides a previously hidden window.  
  1118.  
  1119.     int wunlink(WINDOW whandle);
  1120.     Unlinks a window, and frees all memory allocated by it.
  1121.  
  1122.     int wvline(int wsrow,int wscol,int count,int btype,int attr);
  1123.     "Draws" a vertical text line in the active window.
  1124.  
  1125.     int wwprints(WINDOW whandle,int wrow,int wcol,int attr,char *str);
  1126.     Prints a string to the specified window, which can be hidden or blocked.
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.                                       19   
  1141.  
  1142.